

# def pytest_yaml_run_step(item):
#     """
#     基于插件运行，pytest.ini中添加yaml_run_case = 1
#     :param item: 形参
#     :return:
#     """
#     step = item.current_step
#     key = list(step)[0]
#     value = list(step.values())[0]
#     match key:
#         case 'request':
#             item.resp = requests.request(**value)
#             step_log(key,value)
#         case 'checkpoints':
#             responses_validator.validator(item.resp,**value)
#             step_log(key,value)